﻿using Dapper;
using DB.Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Orther.Service.Sys
{
    public class SysService
    {
        public object GetColValueByKey(string tableName,string selectColName,string whereKey,string whereKeyValue)
        {
            string sql = "select "+ selectColName + " from "+ tableName + " where "+ whereKey + " = @ColParam";
            DynamicParameters param = new DynamicParameters();
            param.Add("@ColParam", whereKeyValue);
            object returnVal = DapperUtilsForMysql.queryObject(sql,param);
            return returnVal;
        }

    }
}
